package com.molichuxing.gateway.bff.permission.entity.response;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.molichuxing.framework.dto.ResponseRootDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class AccountVo extends ResponseRootDto {
    private static final long serialVersionUID = 3899565223113587842L;

    @ApiModelProperty(value = "id")
    private int id;

    @ApiModelProperty(value = "系统类型（1：op，2：经销商）", required = true)
    private int systemType;

    @JsonIgnore
//    @ApiModelProperty(value = " 系统类型字符串")
    private String systemTypeStr;

    @ApiModelProperty(value = " 用户账号（邮箱）", required = true)
    private String account;

    @ApiModelProperty(value = " 真实姓名", required = true)
    private String realName;

    @ApiModelProperty(value = " 是否启用", required = true)
    private int status = 0;

    @JsonIgnore
//    @ApiModelProperty(value = " 是否删除")
    private Boolean isDeleted = false;

    @ApiModelProperty(value = "用户绑定的角色id")
    private Integer groupId = 0;

    @ApiModelProperty(value = " 绑定OP角色名称")
    private String groupName;

    @ApiModelProperty(value = "用户绑定的车联网角色id")
    private int iovGroupId;

    @ApiModelProperty(value = "用户绑定的车联网角色名称")
    private String iovGroupName;

    @ApiModelProperty(value = "经销商id")
    private Integer dealerId;

    @ApiModelProperty(value = "经销商名称")
    private String dealerName;

    @ApiModelProperty(value = "用户手机号")
    private String userPhone;

    @ApiModelProperty(value = "是否为超级管理员（0:否， 1:是），默认为0 is_super")
    private int isSuper;

    @ApiModelProperty(value = "智能终端权限(0:没有登录权限，1:有登录权限),不传默认为0")
    private int smartTerminal;

    @ApiModelProperty(value = "操作人")
    private String accountAccount;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime gmtCreate;
}